<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let p = new Promise((resolve,reject)=>{
            resolve('ok')
        })

        // 指定回调1
        p.then(value => {
            alert(value)
        })

        // 指定回调2
        p.then(value => {
            alert(value+'2')
        })
    </script>
</body>
</html>